package org.jradweb.jradtest.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.Length;
import org.jradweb.core.orm.AbstarctModel;

/**
 * Model class Book.
 * 
 * Created on Wed Mar 26 15:05:07 CST 2008
 * 
 * @author Code Generator
 * @version $Id: Book.java 88 2008-04-08 11:06:33Z wagzhi $
 */
@Entity
@Table(name = "jradtest_book")
public class Book extends AbstarctModel {

	 
	public String name;

	@Column(name = "name")
	@Length(min=3,max=20)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	

	
}
